import request from '../../utils/request'


//获取列表
export const getList = (params) => {
    return request({
        url: '/saleOrder/after/list',
        method: 'get',
        params
    })
}

//新增
export const addfnList = (data) => {
    return request({
        url: '/saleOrder/after',
        method: 'post',
        data
    })
}

//获取单个详情
export const detailfnList = (id) => {
    return request({
        url: `/saleOrder/after/${id}`
    })
}

//修改
export const editfnList = (id) => {
    return request({
        url: `/saleOrder/after/dispose/${id}`,
        method: 'put'
    })
}

export const zhuanYIwanjie = (id) => {
    return request({
        url: `/saleOrder/after/overTask/${id}`,
        method: 'put'
    })
}

export const editData = (data) => {
    return request({
        url: '/saleOrder/after',
        method: 'put',
        data
    })
}

//删除
export const deletefnList = (id) => {
    return request({
        url: `/saleOrder/after/${id}`,
        method: 'delete'
    })
}